/*
 * @Author: suxunying
 * @desc: 
 * @Date: 2021-07-26 09:23:45
 * @LastEditors: suxunying
 * @LastEditTime: 2021-07-26 10:04:32
 * @FilePath: \bmp-poc\plat\src\shared\action.ts
 */
/*
    action模块管理
    集中处理各模块的action
*/
import { localeAction } from './modules/locale/action';
import { userAction } from './modules/user/action';

const actionList = [
    localeAction,
    userAction,
];

const actions = new Map();

actionList.forEach((obj: any) => {
    const { name } = obj;
    Object.keys(obj).forEach((key) => {
        if (key !== 'name') actions.set(`${name}/${key}`, obj[key]);
    });
});

export default actions;
